package com.ruoyi.bigbase.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户收货地址对象 address
 * 
 * @author bigbase
 * @date 2025-05-10
 */
public class Address extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收货地址ID(主键) */
    private Integer id;

    /** 用户ID(外键) */
    private Integer uid;

    /** 省份 */
    @Excel(name = "省份")
    private String province;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    /** 区域 */
    @Excel(name = "区域")
    private String area;

    /** 详情地址 */
    @Excel(name = "详情地址")
    private String detailsAddr;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contacts;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 默认 */
    @Excel(name = "默认")
    private Integer isDefault;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setUid(Integer uid) 
    {
        this.uid = uid;
    }

    public Integer getUid() 
    {
        return uid;
    }

    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }

    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }

    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }

    public void setDetailsAddr(String detailsAddr) 
    {
        this.detailsAddr = detailsAddr;
    }

    public String getDetailsAddr() 
    {
        return detailsAddr;
    }

    public void setContacts(String contacts) 
    {
        this.contacts = contacts;
    }

    public String getContacts() 
    {
        return contacts;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setIsDefault(Integer isDefault) 
    {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault() 
    {
        return isDefault;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("province", getProvince())
            .append("city", getCity())
            .append("area", getArea())
            .append("detailsAddr", getDetailsAddr())
            .append("contacts", getContacts())
            .append("phone", getPhone())
            .append("isDefault", getIsDefault())
            .toString();
    }
}
